﻿using System;
using System.IO;
using System.Reflection;

namespace MoListv1
{
    internal static class Utilities
    {
        private static string AssemblyDirectory
        {
            get
            {
                string codeBase = Assembly.GetExecutingAssembly().CodeBase;
                UriBuilder uri = new UriBuilder(codeBase);
                string path = Uri.UnescapeDataString(uri.Path);
                return Path.GetDirectoryName(path);
            }
        }

        internal static readonly string DataDirectoryPath = Path.Combine(AssemblyDirectory, "队列姬");

        internal static readonly string ConfigFilePath = Path.Combine(DataDirectoryPath, "config.json");

        internal static readonly string BinDirectoryPath = Path.Combine(DataDirectoryPath, "bin");

        internal static readonly string ScribanOutputFilePath = Path.Combine(DataDirectoryPath, "输出.txt");

        internal static readonly string ListCacheDirectoryPath = Path.Combine(DataDirectoryPath, "队列缓存");
    }

}